#include <stdlib.h>

#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"

int main()
{
    const char* file = "test.lua";
    lua_State *L = lua_open();
    luaL_openlibs(L);
    luaL_dofile(L, file);

    system("pause");
    return 0;
}